package com.lagou.rpc.api;

import org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent;

import java.util.List;

/**
 * @param
 * @author oyz
 * @version 1.0
 * @description: 用来监听节点变更的接口
 * @date 2022/2/27 17:55
 */
public interface NodeChangeListener {
        /**
         * @description: TODO 节点变更时，通知listener
         * @author oyz
         * @param
         * @date 2022/2/28 13:13
         * @version 1.0
         */
        void notify(String service, List<String> serviceList, PathChildrenCacheEvent event);
}
